package com.scau.repository;

import com.scau.entity.Order;

import java.util.List;

public interface OrderRepository {

    public List<Order> findAll(int index, int limit);
    public List<Order> findByUId(int index, int limit,int uid);
    public void save(Order order);
    public int getLatestOrderId(int uid);
    public int count();
    public int countByUid(int uid);
    public void updateState(int orderId,int state);
}
